package com.linkage.lcims.base.po.system;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="MD_COLUMN_SEQUENCE"
 *     
*/
@SuppressWarnings("serial")
public class MdColumnSequence implements Serializable {

    /** identifier field */
    private com.linkage.lcims.base.po.system.MdColumnSequencePK comp_id;

    /** nullable persistent field */
    private Integer sequencenum;
    
    /** nullable persistent field */
    private String description;

    /** full constructor */
    public MdColumnSequence(com.linkage.lcims.base.po.system.MdColumnSequencePK comp_id, String description) {
        this.comp_id = comp_id;
        this.description = description;
    }

    /** default constructor */
    public MdColumnSequence() {
    }

    /** minimal constructor */
    public MdColumnSequence(com.linkage.lcims.base.po.system.MdColumnSequencePK comp_id) {
        this.comp_id = comp_id;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *         
     */
    public com.linkage.lcims.base.po.system.MdColumnSequencePK getComp_id() {
        return this.comp_id;
    }

    public void setComp_id(com.linkage.lcims.base.po.system.MdColumnSequencePK comp_id) {
        this.comp_id = comp_id;
    }

    /** 
     *            @hibernate.property
     *	       		column="sequencenum"
     *  	     	length="10"
     *      	 	not-null="true"
     *         
     */
	public Integer getSequencenum() {
		return sequencenum;
	}
	/**
	 * @param sequencenum The sequencenum to set.
	 */
	public void setSequencenum(Integer sequencenum) {
		this.sequencenum = sequencenum;
	}
    /** 
     *            @hibernate.property
     *             column="description"
     *             length="40"
     *         
     */
    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("comp_id", getComp_id())
            .toString();
    }

    public boolean equals(Object other) {
        if ( (this == other ) ) return true;
        if ( !(other instanceof MdColumnSequence) ) return false;
        MdColumnSequence castOther = (MdColumnSequence) other;
        return new EqualsBuilder()
            .append(this.getComp_id(), castOther.getComp_id())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getComp_id())
            .toHashCode();
    }

}
